package com.yjh.admin.entity.chronic;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 用户设备关联表
 *
 * @author GuoBin
 * @date 2020-08-06 16:14:41
 */
@Data
@TableName("equipment_user")
@EqualsAndHashCode(callSuper = true)
public class EquipmentUser extends Model<EquipmentUser> {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@ApiModelProperty(value = "")
	@TableId
	private Integer equipmentUserId;
	/**
	 * 设备ID
	 */
	@ApiModelProperty(value = "设备ID")
	private Integer equipmentId;
	/**
	 * 用户ID
	 */
	@ApiModelProperty(value = "用户ID")
	private Integer vipId;
	/**
	 * 开启状态：0开启，停用
	 */
	@ApiModelProperty(value = "开启状态：0未启用，1启用")
	private String status;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	private LocalDateTime createTime;
	/**
	 *
	 */
	@ApiModelProperty(value = "")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

}
